package gang.org.springframework.framework.web.servlet.config.annotation;

import gang.org.springframework.framework.annotation.GBean;
import gang.org.springframework.framework.resource.GangResourceUrlProvider;

public class GangWebMvcConfigurationSupport {

    @GBean
    public GangResourceUrlProvider mvcResourceUrlProvider(){
        GangResourceUrlProvider urlProvider = new GangResourceUrlProvider();
        return urlProvider;
    }


    @GBean
    public GangRequestMappingHandlerMapping requestMappingHandlerMapping(
            Object contentNegotiationManager,
            Object conversionService,
            Object resourceUrlProvider)
    {
        GangRequestMappingHandlerMapping mapping = createRequestMappingHandlerMapping();
        //TODO
        return mapping;
    }

    private GangRequestMappingHandlerMapping createRequestMappingHandlerMapping() {

        return new GangRequestMappingHandlerMapping();
    }
}
